package com.jokey.vue.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;

/**
 * @author: JokeyZheng
 * @email: zhengjingfeng@ruqimobility.com
 * @created: 2021/11/25 20:36
 * @version: v1.0.0
 * <p>部门表</p>
 */
@Data
@NoArgsConstructor
@TableName(value = "department", autoResultMap = true)
public class Department implements Serializable {

    /**
     * 主键ID
     */
    @TableId(type = IdType.AUTO)
    private Integer id;

    /**
     * 部门名称
     */
    private String name;

    /**
     * 父部门ID
     */
    private Integer parentId;

    /**
     * 部门PATH
     */
    private String depPath;

    /**
     * 是否为父部门，0否 1是
     */
    private Boolean isParent;

    /**
     * 是否可用
     */
    private Boolean enabled;

    public Department(String name) {
        this.name = name;
    }
}
